﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Global.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>

    <script type="text/javascript">
        function DeploySourceEnvironment() {
            $.get('@Url.Action("DeploySourceEnvironment")', { x: Math.random() }, function (result) {
                if (result.success) {
                    $('importSchemaLink').text('Done');
                }
                else {
                    alert(result.success);
                }
            });
            return false;
        }

        function DeployDestEnvironment() {
            $.get('@Url.Action("DeployDestEnvironment")', { x: Math.random() }, function (result) {
                if (result.success) {
                    $('importSchemaLink').text('Done');
                }
                else {
                    alert(result.success);
                }
            });
            return false;
        }
    </script>
</head>

<body>
    <div id="nav">
        <a href="@Url.Action("index")">Entities</a> || <a href="@Url.Action("schemaindex")">Schema</a> || <a href="" onclick="return DeploySourceEnvironment();">DeploySource</a> || <a href="" onclick="return DeployDestEnvironment();">DeployDestination</a> || <a href="@Url.Action("FailedMessages")">Failed messages</a>
    </div>
    <div id="content">
        @RenderBody()
    </div>
</body>
</html>
